// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "MyUserStateWidget.generated.h"

/**
 * 
 */
UCLASS()
class MYPROJECT2_API UMyUserStateWidget : public UUserWidget
{
	GENERATED_BODY()
	
	virtual void NativeConstruct() override;

	UPROPERTY(meta = (BindWidget))
	class UProgressBar* ProgressBar_Health;

	UPROPERTY(meta = (BindWidget))
	class UProgressBar* ProgressBar_Bullets;

	UPROPERTY(meta = (BindWidget))
	class UTextBlock* Bullets;

public:
	UFUNCTION(BlueprintCallable, Category = "State-UI")
	void UpdateHealth(float CurrentHealth, float MaxHealth);

	UFUNCTION(BlueprintCallable, Category = "State-UI")
	void UpdateBullets(int32 CurrentBullets, int32 MaxBullets);
	
	UFUNCTION(BlueprintCallable, Category = "State-UI")
	void SetBullet_Visibility(bool bIsvisible);
};
